package com.melody.service;

import com.melody.entry.MusicInfo;
import com.melody.entry.Result;
import com.melody.entry.UserFavorite;
import com.baomidou.mybatisplus.extension.service.IService;
import io.swagger.models.auth.In;

import java.util.List;

/**
* @author zxz
* @description 针对表【user_favorite(我的喜欢)】的数据库操作Service
* @createDate 2025-05-09 10:31:18
*/
public interface UserFavoriteService extends IService<UserFavorite> {

    /**
     * 批量删除用户喜欢的歌
     * */
    public List<UserFavorite> batchDeleteUserFavorite(List<Long> musicIds, Integer userId);

    public String addUserFavorite(Integer musicId, Integer userId);

    public UserFavorite selectByUserIdAndMusicId(Integer musicId, Integer userId);

    public Integer updateByUserIdAndMusicId(Integer musicId, Integer userId);
}
